import { defineStore } from 'pinia'
import { ref } from 'vue'
// 保存token
export const userStores = defineStore(
  'user',
  () => {
    const token = ref('')
    return { token }
  },
  {
    //想要持久化token
    persist: {
      paths: ['token'],
    },
  }
)
